//-----------------------------------------------------------------------
// <copyright file="MemberBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class MemberBase
	{
		
		#region Variable Declarations
		public static string _Table = "Member";
		private long				memberID = 0;
		private string				nameDisplay = string.Empty;
		private string				password = string.Empty;
		private string				email = string.Empty;
		private string				fullName = string.Empty;
		private int				sex = 0;
		private string				address = string.Empty;
		private string				phone = string.Empty;
		private string				fax = string.Empty;
		private string				forgotCode = string.Empty;
		private string				activateCode = string.Empty;
		private bool				status = false;
		private bool				goldMember = false;
		private int				membershipFeeID = 0;
		private DateTime				startDateGoldmember = new DateTime(1900,1,1,0,0,0,0);
		private DateTime				endDateGoldmember = new DateTime(1900,1,1,0,0,0,0);
		private string				other = string.Empty;
		#endregion
		
		#region Constructors
		public MemberBase() {}
		
		public MemberBase (
			long memberID,
			string nameDisplay,
			string password,
			string email,
			string fullName,
			int sex,
			string address,
			string phone,
			string fax,
			string forgotCode,
			string activateCode,
			bool status,
			bool goldMember,
			int membershipFeeID,
			DateTime startDateGoldmember,
			DateTime endDateGoldmember,
			string other)
		
		{
			this.memberID = memberID;
			this.nameDisplay = nameDisplay;
			this.password = password;
			this.email = email;
			this.fullName = fullName;
			this.sex = sex;
			this.address = address;
			this.phone = phone;
			this.fax = fax;
			this.forgotCode = forgotCode;
			this.activateCode = activateCode;
			this.status = status;
			this.goldMember = goldMember;
			this.membershipFeeID = membershipFeeID;
			this.startDateGoldmember = startDateGoldmember;
			this.endDateGoldmember = endDateGoldmember;
			this.other = other;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long MemberID
		{
			get { return memberID; }
			set { memberID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string NameDisplay
		{
			get { return nameDisplay; }
			set { nameDisplay = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Password
		{
			get { return password; }
			set { password = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Email
		{
			get { return email; }
			set { email = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string FullName
		{
			get { return fullName; }
			set { fullName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Sex
		{
			get { return sex; }
			set { sex = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Address
		{
			get { return address; }
			set { address = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Phone
		{
			get { return phone; }
			set { phone = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Fax
		{
			get { return fax; }
			set { fax = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ForgotCode
		{
			get { return forgotCode; }
			set { forgotCode = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ActivateCode
		{
			get { return activateCode; }
			set { activateCode = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Status
		{
			get { return status; }
			set { status = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool GoldMember
		{
			get { return goldMember; }
			set { goldMember = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int MembershipFeeID
		{
			get { return membershipFeeID; }
			set { membershipFeeID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime StartDateGoldmember
		{
			get { return startDateGoldmember; }
			set { startDateGoldmember = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime EndDateGoldmember
		{
			get { return endDateGoldmember; }
			set { endDateGoldmember = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Other
		{
			get { return other; }
			set { other = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum MemberColumns
	{
		MemberID,
		NameDisplay,
		Password,
		Email,
		FullName,
		Sex,
		Address,
		Phone,
		Fax,
		ForgotCode,
		ActivateCode,
		Status,
		GoldMember,
		MembershipFeeID,
		StartDateGoldmember,
		EndDateGoldmember,
		Other
	}//End enum
}